<?php /* Smarty version 2.6.26, created on 2014-02-07 08:00:07
         compiled from header.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'urldecode', 'header.tpl.php', 21, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_tpl_vars['SITE_NAME']; ?>
 <?php if ($this->_tpl_vars['pagetitle'] != ""): ?> - <?php echo $this->_tpl_vars['pagetitle']; ?>
 <?php else: ?><?php if ($this->_tpl_vars['uloggedId'] != ""): ?> - Member Area <?php endif; ?> <?php endif; ?></title>
<?php if ($this->_tpl_vars['pagekeywords'] != ""): ?><meta name="keywords" content="<?php echo $this->_tpl_vars['pagekeywords']; ?>
" /><?php elseif ($this->_tpl_vars['SITE_KEYWORDS'] != ""): ?> <meta name="keywords" content="<?php echo $this->_tpl_vars['SITE_KEYWORDS']; ?>
" /> <?php endif; ?>
<?php if ($this->_tpl_vars['pagedescription'] != ""): ?><meta name="description" content="<?php echo $this->_tpl_vars['pagedescription']; ?>
" /><?php elseif ($this->_tpl_vars['SITE_DESCRIPTION'] != ""): ?> <meta name="description" content="<?php echo $this->_tpl_vars['SITE_DESCRIPTION']; ?>
" /> <?php endif; ?>


<!--Css-->
<link type="text/css" rel="stylesheet" href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
main.css" />

<link href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
video/video-js.css" rel="stylesheet" type="text/css">
<script src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
video/video.js"></script>
<script>
   _V_.options.flash.swf = "<?php echo $this->_tpl_vars['SITE_URL']; ?>
video/video-js.swf";
</script>


<script type="text/javascript">
var SITEURL = '<?php echo urldecode($this->_tpl_vars['SITE_URL']); ?>
';
var quick_pay_fee = '<?php echo $this->_tpl_vars['QUICK_PAY_FEE']; ?>
';
var quick_pay_flat_fee = '<?php echo $this->_tpl_vars['QUICK_PAY_FLAT_FEE']; ?>
';
</script>


<!--Scripts-->
<script src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/json2.js" type="text/javascript"></script>
<script src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/ajax.js" type="text/javascript"></script>
<script src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/common.js" type="text/javascript"></script>


<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/css/tip-twitter.css" />


<script type="text/javascript" src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/jquery.poshytip.js"></script>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/ec_tooltip.js"></script>


<?php if ($this->_tpl_vars['script'] == 'download'): ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/js/jquery.tipsy.js"></script>
<link href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
templates/styles/tipsy.css" rel="stylesheet" type="text/css" />
<?php endif; ?>


<?php if ($this->_tpl_vars['script'] == 'dashboard'): ?>
<?php echo '
<script type="text/javascript">
    $(document).ready(function(){
		

	    $(\'#curmonth_graph\').click(function(e){
			'; ?>

		    e.preventDefault();
			$('#graphFrame').attr('src', '<?php echo $this->_tpl_vars['SITE_URL']; ?>
overview_graph.php?m=current');
		<?php echo '		
		});	

	    $(\'#lastmonth_graph\').click(function(e){
			'; ?>

		    e.preventDefault();
			$('#graphFrame').attr('src', '<?php echo $this->_tpl_vars['SITE_URL']; ?>
overview_graph.php?m=last');
		<?php echo '		
		});	
		
		
	});
</script>
'; ?>

<?php endif; ?>



<?php if ($this->_tpl_vars['script'] == 'stats'): ?>

<script type='text/javascript'  src='https://www.google.com/jsapi'> </script>	
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>    

<script type = "text/javascript" > 
<?php if ($this->_tpl_vars['country_analytics'] != ""): ?>
<?php echo '

google.load(\'visualization\', \'1\', {
    packages: [\'geochart\']
});

function drawVisualization() {
    var data = google.visualization.arrayToDataTable(['; ?>
<?php echo $this->_tpl_vars['country_analytics']; ?>
<?php echo '
      ]);
    
      var geochart = new google.visualization.GeoChart(
          document.getElementById(\'c_map\'));
      geochart.draw(data, {width: 650, height: 377, backgroundColor: "#ffffff"});
}
google.setOnLoadCallback(drawVisualization);
    '; ?>

	<?php endif; ?>
	
	
    <?php if ($this->_tpl_vars['ldata'] != ""): ?>
	<?php echo '
      google.load("visualization", "1", {packages:["corechart"]});
      
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
         '; ?>
<?php echo $this->_tpl_vars['ldata']; ?>
<?php echo '

        ]);

        var chart = new google.visualization.LineChart(document.getElementById(\'a_chart\'));
        chart.draw(data, {width: 650, height: 377, title: \'Clicks/Downloads\', pointSize: 3, backgroundColor: "#ffffff"});
		
      }
	  
	  google.setOnLoadCallback(drawChart);
	  
	  '; ?>

<?php endif; ?>

    <?php if ($this->_tpl_vars['pdata'] != ""): ?>
	<?php echo '
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart2);
      function drawChart2() {
        var data = google.visualization.arrayToDataTable([
         '; ?>
<?php echo $this->_tpl_vars['pdata']; ?>
<?php echo '

        ]);


        var chart = new google.visualization.LineChart(document.getElementById(\'premium_chart\'));
        chart.draw(data, {width: 650, height: 377, title: \'Premium Earnings\', pointSize: 3, backgroundColor: "#f6f6f6"});
      }
	  
	  '; ?>

<?php endif; ?>


   
  </script>
<?php endif; ?>


<script>
<?php echo '
  (function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\');

  ga(\'create\', \'UA\', \'\');
  ga(\'send\', \'pageview\');
'; ?>

</script>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "gateway_scripts.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<LINK REL="SHORTCUT ICON" HREF="favicon.ico">

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div class="headerFull">

	<div class="wrapper">

		<div class="headerLogo"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
"><img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/header_logo.png" border="0"></img></a></div>

		<div class="headerLinks">

		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_home.png" class="middle" alt="Home"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
index.php">Home</a>
		<?php if ($this->_tpl_vars['uloggedId'] <= '0'): ?>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_login.png" class="middle" alt="Login"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
login.php">Login</a>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_register.png" class="middle" alt="Register"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
register.php">Register</a>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_contact.png" class="middle" alt="Contact"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
contact.php" style="padding-right: 0px;">Contact</a>
		<?php else: ?>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_register.png" class="middle" alt="Dashboard"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
dashboard.php">Dashboard</a>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_forum.png" class="middle" alt="Forum"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
forum" target="_blank">Forum</a>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_contact.png" class="middle" alt="Contact"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
contact.php">Contact</a>
		<img src="<?php echo $this->_tpl_vars['SITE_URL']; ?>
images/i_logout.png" class="middle" alt="Logout"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
logout.php" style="padding-right: 0px;">Logout</a>
		<?php endif; ?>

		</div>

	</div>

</div>